package com.qfedu.fmmall.stock.controller;

import com.qfedu.fmmall.stock.service.StockCartService;
import com.qfedu.fmmall.vo.ShoppingCartVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author : yanBin
 * @date :2022/1/25 13:16
 */
@RestController
@RequestMapping("/stock")
public class StockCartController {

    @Autowired
    private StockCartService stockCartService;

    @GetMapping("/query")
    public List<ShoppingCartVO> query(@RequestParam("cids") String cids){
        System.out.println("-------------------------stock-query服务");
        return stockCartService.selectShoppingCartByCids(cids);
    }

}
